Parent Topic: Raw Binary Image Format (RAW)
AuxilaryTarget: test.raw RawDefinition: 300 300 2 ChanDefinition-1: 16U 512 2 600 Swapped ChanDefinition-2: 16U 180512 2 600 Swapped ChanDesc-1: Original DEM ChanDesc-2: Edited DEM MapUnits: UTM 11 S E000 UpLeftX: 428720 UpLeftY: 3734400 LoRightX: 444080 LoRightY: 3719040 ProjParms: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 METADATA_IMG_2_NO_DATA_VALUE: 100First, an .aux file describing a file must be in the same directory as the target file, have the same basename, but the extension .aux. In the above example a selection of the file test.raw would case GeoGateway to check for the associated test.aux file. If it finds it, the name of the raw file (test.raw) is checked against the AuxilaryTarget line in the .aux file. If the filenames are different, then the .aux file is ignored.
Therefore, the first line of any .aux file must be the AuxilaryTarget: entry with the value being the name (not including directory path) of the target file. Now imagine that there was a directory with the files test.001, test.002, and test.003. There can only be one test.aux in that directory so it is not possible to associate an .aux file with each of the files.
The .aux file consists of a series of entry names, and values. The entry name is the portion of a line before the first colon, and the value is everything after the colon. So above we see several entries including RawDefinition, ChanDefinition-1, and ChanDefinition-2.
RawDefinition: pixels lines bandsThe RawDefinition entry has three items as its value. They are the number of pixels, lines, and bands. They must be separated by white space, but otherwise the formatting is free form. If no ChanDefinition entries are provided, then the file is assumed to have zero header bytes, and to be band interleaved.
ChanDefinition-n: data_type start_offset pixel_offset line_offset swap_flagThe ChanDefinition entry describes the data layout of a single channel, or band. The -n in the entry name indicates which band this description applies to. The data_type must be one of 8U, 16S, 16U, or 32R. The start offset is the offset in bytes to the first byte of data of the first pixel for this channel. The pixel_offset is the offset between the first byte of one pixel on a scanline, and the next pixel. The line_offset is the offset in bytes between the first pixel of one scanline and the first pixel of the next scanline. Lastly, the swap flag can either be Swapped (Intel/LSB) or Unswapped (Motorola/MSB).
ChanDesc-n: descriptionThe ChanDesc entry associates a channel description with a particular channel.
MapUnits: projection_nameThe MapUnits entry associates a projection/georeferencing system name with the file. It must contain at most 16 characters. Its interpretation is further described in the general projections description.
UpLeftX, UpLeftY, LoRightX, LoRightYThese entries are used to provide the upper left and lower right corner coordinates in the indicated MapUnits.
ProjParms: n1 n2 ... n17This entry is used to supply additional parameters needed to define complex projections. The meaning of these parameters is not described here, but can be deduced by editing the projection parameters of a raw file and inspecting the values written to the .aux file.
METADATA_layertype_layer#_metaitem: valueThe METADATA entry can be used to associate the value ``value'' with the metadata item ``metaitem'' on the layer ``layer#'' of type ``layertype''.
See Also: Projections